package asia.hymsk.spring.pojo.mongodb;

/**
 * ClassName: Product
 * Package: com.example.demo.test.pojo
 */

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * 商品数据实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document("Product")
public class Product {
    @Id
    private String id;
    @Field
    private Integer productId;//主键 商品的ID
    @Field
    private String name;//商品的名称
    @Field
    private String categories;//商品所属类别   每⼀项⽤“|”分割
    @Field
    private String imageUrl;//商品图⽚的URL
    @Field
    private String tags;//商品的UGC标签   每⼀项⽤“|”分割

}






















